package com.ocom.payhandle.fun;


import com.ocom.common.entity.card.EntityXfAccountInfo;
import com.ocom.common.entity.card.EntityXfRecordProcess;
import com.ocom.common.entity.card.EntiyXfMerchPayInfo;
import com.ocom.payhandle.vo.DeviceInfoVo;

import java.util.Date;

public interface PayHandleFunService {

    //查询机器和消费时间等参数
    public Integer selectMealNo(Long companyId, Long pointId,Integer accTypeId ,  Date date) ;

    public EntiyXfMerchPayInfo configure(EntityXfRecordProcess entityXfRecordProcess);
    public EntiyXfMerchPayInfo selectConfigure(Long comId, Long merchId);

    public void relatedDevice(EntityXfRecordProcess entityXfRecordProcess, Long companyId, String machNo, Date date);

    public void relatedReceiptNo(EntityXfRecordProcess entityXfRecordProcess);

    public DeviceInfoVo selectDeviceInfo(Long companyId, String machNo);

    Boolean checkCanPay(Integer consType,EntityXfRecordProcess entityXfRecordProcess, EntityXfAccountInfo entityXfAccountInfo);

    //订餐处理
    public void relatedDingCan(EntityXfRecordProcess entityXfRecordProcess, String consDate, Integer consMeal, Integer consPoint);


    public boolean checkIfWaitPay(Long companyId,String mealNo,Long merchId);

    public int getCancelConfig(Long companyId,Long opTypeDiff);

    public int getRefPayTimes(Long companyId);
}
